home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: hearst.acc.Virginia.EDU!murdoch!usenet
- From: "tmb@virginia.edu" <tmb@virginia.edu>
- Subject: Missing Signals?
- X-Nntp-Posting-Host: cbt0pc.bio.virginia.edu
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <313705A1.6324@virginia.edu>
- Sender: usenet@murdoch.acc.Virginia.EDU
- Content-Transfer-Encoding: 7bit
- Cc: jolinger@bix.com, srrodewa@eclat.uccs.edu
- Organization: University of Virginia
- Mime-Version: 1.0
- Date: Fri, 1 Mar 1996 14:11:45 GMT
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I'm having a bad time trying to solve an intermittant problem of
- not being able to detect a task Signal that should be set
- by the timer.device.
-
- My code starts a timer on a correctly allocated Signal for
- a five second period and then waits on both this signal and on
- the signal associated with the Intuition message port of its
- window.
-
- It makes sure to check for both signals after each Wait() and
- processes the intuition message and/or restarts the timer as
- appropriate.
-
- Rarely, the timer Signal is never set. I noticed it happening
- when I scroll the GadTools listview gadget that the program
- uses, and verified that I can pretty much force it to happen
- within 30 seconds by continuous rapid ("frenzied") scrolling of the
- listview, if there is also another high priority process running at the same
- time. ie, I might see the problem once an hour with heavy, but
- "normal" use of the listview when this program is the only one
- running, but much more often under the heavy usage conditions.
-
- I have only one Wait(), and, so far, cannot see how my code could
- be clearing the Signal without noticing it.
-
- What I'd like to hear is information/opinion on whether this is a known
- glitch in the timer device (or Intuition message handling or GadTools
- processing) - or whether there might be a known, but subtle, sequence
- of multitasking activities causing it and there is a remedy that I could
- use to avoid it (eg, disable/enable around the timer DoIO(), etc)
- - or whether it is something that just won't happen with correct use of the
- system calls, and I better look even harder at my own code.
-
- Thanks,
-
- Tom Breeden
- tmb@virginia.edu
-